package com.atguigu.spzx.manager.mapper;

import com.atguigu.spzx.model.dto.system.LoginDto;
import com.atguigu.spzx.model.dto.system.SysUserDto;
import com.atguigu.spzx.model.entity.system.SysUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author LT
 * @create 2024-03-07-10:21
 */
@Mapper
public interface SysUserMapper {
    SysUser selectByUserName(@Param("loginDto") LoginDto loginDto);

    List<SysUser> findDtoPage(SysUserDto sysUserDto);

    SysUser findSysUserById(@Param("id") Long id);

    void saveSysUser(SysUser sysUser);

    List<SysUser> findAll();

    void UpdateById(SysUser sysUser);

    void deleteById(Long id);

}
